home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970626-19970929
/
000090_news@newsmaster….columbia.edu _Tue Jul 22 14:14:02 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id OAA21568
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 22 Jul 1997 14:14:02 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id OAA11790
for kermit.misc@watsun; Tue, 22 Jul 1997 14:14:02 -0400 (EDT)
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: arithmetics in scripts
Date: 22 Jul 1997 18:13:58 GMT
Organization: Columbia University
Lines: 27
Message-ID: <5r2t96$keq$1@apakabar.cc.columbia.edu>
References: <5r22t1$6p4@glas.apc.org>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:7368
In article <5r22t1$6p4@glas.apc.org>,
Dmitry the Zuryanovich <dz@mir.glas.apc.org> wrote:
: I do not understand rules of arithmetic operations in CKermit: looks
: like they do not operate with anything larger then bytes.
:
It depends on the underlying platform (and more to the point, sizeof int).
: I want to count crc16 and then convert it to hex ( as 16 bit integer ),
: but it converts numbers like 123 to 313233 ( where 31h is ascii of '1' and
: so on).
:
How are you trying to do this?
In C-Kermit 6.0 the operation you want to do trivial. Suppose \%s is
the string. Then to get the hexadecimal CRC-16:
\fhex(\fcrc16(\%s))
If you don't have C-Kermit 6.0, find it at:
http://www.columbia.edu/kermit/ck60.html
To learn its script programming language, please read the manual:
http://www.columbia.edu/kermit/ck60manual.html
- Frank